package ANDROID_RLK_MEDIAPLAYER;

public class Example {
    public boolean onKeyDown(final int keyCode, final KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
            final MediaPlayer player = MediaPlayer.create(this, ringtoneUri);
            player.start();

        }
        return super.onKeyDown(keyCode, event);
    }
}
